<!-- Start room pax -->
<?php 
//print_r($results);

$room_n = 1 ?>
<?php if($hotel["room_sets"]): ?>
    <?php foreach($hotel["room_sets"] as $key => $room_set): ?>
        <div class="col_110">
            <div class="box_room_number">

                        <h4>Room <?=$key?></h4>
                        <table class="aqua">
                        <tr>
                            <td width="50"><strong>Adults</strong></td>
                            <td><?=$room_set["adults"]?></td>
                        </tr>
                        <tr>
                            <td><strong>Children</strong></td>
                            <td><?=$room_set["children"]?></td>
                        </tr>
                        </table>

            </div>
        </div>
        <!-- End room pax -->
        <!-- Start room rates -->
        <div class="col_500">
            <div class="row_blue_gra_bg">
                <table class="saturn" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="200"><div class="saturn_td_padding">Room type</div></td>
                    <td width="90"><div class="saturn_td_padding">Meal plan</div></td>
                    <td width="110"><div class="saturn_td_padding a_center">Avg. per night</div></td>
                    <td width="70"><div class="saturn_td_padding a_center">Total</div></td>
                    <td width="30"><div class="saturn_td_padding"></div></td>
                </tr>
                </table>
            </div>
            <table class="libra" border="0" cellpadding="0" cellspacing="0">
            <? $cur = 0 ?>
            <?php if($room_set["rooms"]): ?>
                <?php foreach($room_set["rooms"] as  $key => $room): ?>
                    <tr class="<?=($cur++%2==1)?"":"libra_highlight"?>">
                        <td width="200"><div class="libra_td_padding"><?=$room["Type"]?></div></td>
                        <td width="90"><div class="libra_td_padding"><?=$room["board_desc"]?></div></td>
                        <td width="110"><div class="libra_td_padding a_center"><?=currency_symbol($hotel["currency"]).number_format(round(($room["Rate"]/$results["nights"]), 2, PHP_ROUND_HALF_UP), 2, '.', '')?></div></td>
                        <td width="70"><div class="libra_td_padding a_center"><span class="price_total_hotel"><?=currency_symbol($hotel["currency"]).number_format(($room["Rate"]), 2, '.', '')?></span><span class="price_asterix">*</span></div></td>
                        <td width="30"><div class="libra_td_padding"><input type="radio" name="room_id_<?=$room_n?>" value="<?= $key//$room["ID"]?>" onclick="enableBookBotton('<?=$hotel["hotel_id"]?>' , '<?=$results["rooms_count"]?>')" /></div></td>
                    </tr>
                <?php endforeach ?>
            <?php endif ?>
            </table>
            <!--<label for="room_id_<?=$room_n?>" class="error">Please select a room</label>-->
        </div>
        <div class="clearing"></div>
        <!-- End room rates -->
        <? $room_n++ ?>
    <?php endforeach ?>
<?php endif ?>